package com.ishuoxiao.tools;

public class DataRuntimeException extends RuntimeException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String expCode = null;//异常编码
	
	private String expDesc = null;//异常描述

	

	public DataRuntimeException() {
		
	}
	
	
	
	public DataRuntimeException(String expDesc) {
		super();
		this.expDesc = expDesc;
	}



	public DataRuntimeException(String expCode, String expDesc) {
		this.expCode = expCode;
		this.expDesc = expDesc;
	}

	public String getExpCode() {
		return expCode;
	}

	public void setExpCode(String expCode) {
		this.expCode = expCode;
	}

	public String getExpDesc() {
		return expDesc;
	}

	public void setExpDesc(String expDesc) {
		this.expDesc = expDesc;
	}
	
	public String toString() {
		return String.format("【错误提示是：%s】",expDesc);
	}
}
